package com.xkcoding.sharding.jdbc.rabbitmq.handler;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class RabbitMQReceiverService {

    @RabbitListener(queues = "binlog_queue")
    public void receiveMessage(String message) {
        System.out.println("Received message: " + message);
        // 处理接收到的消息逻辑
    }
}
